package api

import (
	"github.com/gogf/gf/v2/frame/g"
)

type CreateMemberReq struct {
	g.Meta `method:"post" summary:"创建" tags:"师生系统"`
	CreateMemberData
}

type CreateMemberData struct {
	No          string      `json:"no"           v:"max-length:16#学号长度超出限定16字符" description:"学号"`
	Avatar      string      `json:"avatar"       description:"头像"`
	Name        string      `json:"name"         v:"required|max-length:16#名称不能为空|工号长度超出限定16字符" description:"姓名"`
	Mobile      string      `json:"mobile"       v:"phone#手机号校验失败" description:"手机号"`
	UnionUserId int64      `json:"union_user_id" dc:"所属角色，多个用逗号隔开"`
}


type QueryMemberByIdReq struct {
	g.Meta ` method:"post" summary:"获取ById" tags:"师生系统"`
	QueryMemberByIdData
}

type QueryMemberByIdData struct {
	Id int64 `json:"id" v:"required#ID内容查询无效" description:"id"`
}

type CreateExaminationReq struct {
	g.Meta      ` method:"post" summary:"创建考试成绩" tags:"师生系统"`
	Examination CreateExaminationData `json:"examination"`
}

type CreateExaminationData struct {
	Id                string  `json:"id"                description:"ID"`
	Name              string `json:"name"              v:"required|max-length:128#名称不能为空|名称长度超128字符出限定范围" description:"团队名称，公司维度下唯一"`
	ClassNo		string		`json:"classNo"       v:"required#班级号校验失败" description:"班级号"`
	Fraction string  `json:"fraction" v:"required#分数校验失败" description:"分数"`
	EmployeeId string `json:"employeeId" v:"required#用户Id校验失败" description:"员工id"`
}


type QueryExaminationByNameReq struct {
	g.Meta ` method:"post" summary:"获取考试成绩By考试名称" tags:"师生系统"`
	QueryExaminationByNameData
}

type QueryExaminationByNameData struct {
	Name      string      `json:"name"       v:"required#成绩查找失败" description:"name"`
}

